<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="images/favicon.ico" type="image/ico"/>
    <title>核桃省钱后台管理</title>

    <!-- Bootstrap -->
    <link href="../../static/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../../static/css/font-awesome.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Datatables -->
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <div class="col-md-3 left_col" id="menu">
        </div>

        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <img src="images/user.png" alt="">
                                <span class="userName" id="userName"></span>
                            </a>
                        </li>

                    </ul>
                </nav>
            </div>
        </div>
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h2>测试服务器 金额 粉丝修改(仅限测试服务器使用)</h2>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <!-- form start -->
                                <form class="form-horizontal">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <div class="col-sm-2">
                                                <input class="form-control search-input" id="user_id" type="text"
                                                       value="88888"
                                                       placeholder="输入用户ID ">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchUser()"
                                                class="btn btn-primary">
                                            查询用户收益
                                        </button>
                                    </div>
                                </div>
                                <!-- form end -->
                            </div>
                            <div class="x_title">
                                个人收益：
                                <form class="form-horizontal">
                                    <input id="atWillUpdata_id" value="-1" type="hidden">
                                    <input id="je_user_id" value="88888" type="hidden">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">用户普通金额预估</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="owner_estimate"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">普通余额</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="normal_balance"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">奖励金余额</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="bounty_balance"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">普通佣金累计收益</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="accumulated" type="number"
                                                       min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">分享活动余额</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="activity_balance"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">分享活动累计收益</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="activity_accumulated"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">粉丝预估</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="fans_estimate"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">奖励佣金累计收益</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="bounty_accumulated"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">直接粉丝数</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="direct_fans" type="number"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">间接粉丝数</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="indirect_fans"
                                                       type="number"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchUpdata()"
                                                class="btn btn-primary">
                                            修改用户收益
                                        </button>
                                    </div>
                                </div>
                            </div>
                            昨日预估收益： 注解- 修改昨日 都会间接影响到本月相关收益数据
                            <div class="x_title">
                                <input id="je_fomr_id" value="" type="hidden">
                                <input id="je_fomr_user_id" value="" type="hidden">
                                <input id="estimateDay" value="-1" type="hidden">
                                <form class="form-horizontal">
                                    <input id="je_user_form_id" value="" type="hidden">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">自购预估佣金</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="estimate_commission"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">礼包预估奖励</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="estimate_bounty"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>

                                            <label class="col-sm-1 control-label">粉丝返来的预估</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="estimate_fans"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchUpdataFomr()"
                                                class="btn btn-primary">
                                            预估修改
                                        </button>
                                    </div>
                                </div>
                            </div>
                            今日预估佣金： 注解- 报表第二天生成 所以今日预估 根据粉丝普通订单返佣 以级 普通订单返佣来决定,下方数据只对普通订单做更改
                            <div class="x_title">
                                <input id="je_order_user_id" value="" type="hidden">
                                <form class="form-horizontal">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">预估总收益</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="user_rake_back_yugu"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchUpdataOrder()"
                                                class="btn btn-primary">
                                            预估佣金修改
                                        </button>
                                    </div>
                                </div>
                            </div>
                            今日预估奖励： 注解- 报表第二天生成 所以今日预估 根据  粉丝礼包订单返佣
                            <div class="x_title">
                                <input id="je_order_gift_rake_id" value="" type="hidden">
                                <form class="form-horizontal">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">用户返佣</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="user_rake_back"
                                                       type="number" min="0" step="0.01"
                                                       style="border: 0;outline: none; background-color: rgba(0, 0, 0, 0);">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchUpdataOrderGiftRake()"
                                                class="btn btn-primary">
                                            预估奖励修改
                                        </button>
                                    </div>
                                </div>
                            </div>
                            <div class="x_title">
                                <form class="form-horizontal">
                                    <input id="in_user_id" value="88888" type="hidden">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">粉丝用户ID</label>
                                            <div class="col-sm-1">
                                                <input class="form-control search-input" id="fs_user_id" type="text"/>
                                            </div>

                                            <label class="col-sm-1 control-label">粉丝分类</label>
                                            <div class="col-sm-1">
                                                <select id="directRelation" class="inputBg form-control-select">
                                                    <option value="-1" selected="">所有</option>
                                                    <option value="1">直属</option>
                                                    <option value="2">非直属</option>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">只看VIP</label>
                                            <div class="col-sm-1">
                                                <input type="checkbox" id="is_vip"/>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="box-footer search-btn">
                                    <div class="btn-group">
                                        <button type="submit" onclick="AtWillUpdataManager.searchFSlist()"
                                                class="btn btn-primary">
                                            搜索 粉丝信息
                                        </button>
                                    </div>
                                </div>
                            </div>
                            <div class="x_content">
                                <div id="AtWillUpdataManager" class="table-responsive">
                                    <table id="AtWillUpdataManagerTable" class="table table-striped table-bordered"
                                           style="word-break:break-all;"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <!-- /page content -->

    </div>
</div>
<!-- jQuery -->
<script src="../../static/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="../../static/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="../vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="../vendors/nprogress/nprogress.js"></script>
<!-- iCheck -->
<script src="../../static/js/plugins/iCheck/icheck.min.js"></script>
<!-- Datatables -->
<script src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
<script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
<script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
<script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
<script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
<script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
<script src="../vendors/jszip/dist/jszip.min.js"></script>
<script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
<script src="../vendors/pdfmake/build/vfs_fonts.js"></script>

<!-- Custom Theme Scripts -->
<script src="../build/js/custom.min.js"></script>

<script src="../../static/js/common/Feng.js"></script>
<script src="../../static/js/common/bootstrap-table-object.js"></script>
<script src="../../static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="../../static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="../../static/js/plugins/layer/laydate/laydate.js"></script>
<script src="../../static/js/plugins/layer/layer.min.js"></script>
<script src="../../static/js/common/ajax-object.js"></script>
<script src="../vendors/appcookie.js"></script>

<script src="../../static/modular/api/AtWillUpdata/AtWillUpdata.js"></script>

</body>
</html>